extends Node2D


var parent: Node2D


func _ready() -> void:
	parent = get_parent()
	

func _physics_process(delta: float) -> void:
	parent.z_index = int(parent.global_position.y)
